package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.Movies;
import org.springframework.stereotype.Service;


public interface MovieService {
    public PageInfo<Movies> findByPage(Integer pageNum, Integer pageSize);

    /*根据cid查询或者关键字查询*/
    PageInfo<Movies> findByPage(Integer pageNum, Integer pageSize, Integer cid, String keyword);


    //添加电影的方法
    void save(Movies movies);

    //根据id查询
    Movies findById(Integer id);

    //根据id删除
    void deleteById(Integer id);
    /*批量删除*/
    void deleteBatch(Integer[] ids);
}
